package com.mgface.springcloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project springcloudCollection
 * @create 2018-08-16 11:23
 **/
@FeignClient(name = "Service",//fallbackFactory = ServerFeignFallbackFactory.class,
fallback = ServerFeignFallback.class)
//fallbackfactory指回调工厂的实现类，fallback指具体的回调类
public interface ServerFeign {
    @GetMapping("/hello")
    public String hello(@RequestParam("param") String param);
}
